com.rscja.deviceapi

## Class OTG

- java.lang.Object
- - com.rscja.deviceapi.OTG

-     public class OTG
      extends java.lang.Object

  OTG ࣬ V600 豸
  OTG class, only for V600 device
  Author:
    liuruifeng

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `OTG()`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static OTG` | `getInstance()` ȡOTG ʵ Get instance for OTG.
    `boolean` | `isPowerOn()` 判断设备是否上电 Detect whether device is powered on or not.
    `void` | `off()` ر OTG Close OTG.
    `void` | `on()` OTG Open OTG.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### OTG

          public OTG()

  - ### Method Detail

    - #### getInstance

          public static OTG getInstance()

      ȡOTG ʵ
      Get instance for OTG.
      Returns:
        OTG ʵ
        Return OTG instance entity.

    - #### on

          public void on()

      OTG
      Open OTG.

    - #### off

          public void off()

      ر OTG
      Close OTG.

    - #### isPowerOn

          public boolean isPowerOn()

      判断设备是否上电
      Detect whether device is powered on or not.
      Returns:
        已经上电返回true，反之返回false
        If powered on,return true, if not, return false.